import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import "../src/assets/iconfont/iconfont.css"

// 引入axios
import axios from 'axios'
axios.defaults.baseURL = "http://127.0.0.1:3000"
// Vue.use(VueAxios, axios)
Vue.prototype.axios = axios

//引入mintui
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
// Vue.use()方法会自动调用MintUI底层代码的install方法
Vue.use(MintUI)

// 引入vant
import Vant from 'vant'
import 'vant/lib/index.css'
Vue.use(Vant)

// 文件上传
import { Uploader } from 'vant';
Vue.use(Uploader);

// 引入 dayjs
import dayjs from 'dayjs'
Vue.prototype.dayjs = dayjs;

import AMap from 'vue-amap';
// Vue.use(AMap);
// // 初始化vue-amap
// AMap.initAMapApiLoader({
//     // 高德key
//     key: 'f3543918b5c7b5f70951816c890324ff',
//     // 插件集合 （插件按需引入）
//     plugin: ['AMap.Geolocation', 'AMap.PlaceSearch', 'AMap.ToolBar', 'AMap.Geocoder']
//   });


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
